/**
 * Created by charlie on 17-12-27.
 */
import React,{Component} from 'react'
import {View,Text,FlatList} from 'react-native'
import List from './table'
import Loading from '../../components/loading/loading'

export default class index extends React.Component{
    render(){
        let loading = this.props.taiZhang.loading;
        return(
            <View style={{flex:1}}>
                {
                    loading?<Loading />:
                        <View>
                            <List {...this.props}/>
                        </View>
                }
            </View>
        )
    }
}